{include file="top.html"}
<link rel="stylesheet" href="{$CSS_PATH}order.css"/>
<!--detail Start-->
<div class="wrapper page-main clearfix">
    <div class="container">
        {if $smarty.get.pay_status eq 2}
        <div class=" succeed section-order ">
            <div class="order-info">
                <div class="fl">
                   <div class="icon-right">
                   </div>
                </div>
                <div class="fl order-title ">
                    <h2 class="title">订单支付成功!</h2>
                    <p class="p1">
                        <span>您已成功支付：<em class="col-red">￥{$order_amount}</em></span>
                        <span>订单号：{$order_sn}
                        </span>
                    </p>   
                    <a href="user.php" class="col-bule">查看我的订单</a>
                </div>
            </div>
        </div>
        {else}
        <div class=" defeated section-order ">
            <div class="order-info">
                <div class="fl">
                   <div class="icon-right">
                   </div>
                </div>
                <div class="fl order-title ">
                    <h2 class="title">订单未支付，重新支付！</h2>
                    <p class="p1">
                        
                        <span>订单号：{$smarty.get.order_sn}
                        </span>
                    </p>
                    <a href="?act=to_pay&order_id={$order_id}" class="zhifu">重新支付</a>
                    <a href="user.php" class="col-bule">查看我的订单</a>
                </div>
            </div>
        </div>
        {/if}
    </div>
</div>

<script>
        $(function  () {
          
            $(".mode-tab-item").click(function(event) {
                $(this).addClass("curr").siblings().removeClass("curr")
                var $key=$(this).index();
                $(this).parent(".hd").siblings(".mode-box").eq($key).show().siblings(".mode-box").hide();
            })
        })
</script>

            
 <script>
       $(function() {
    var Accordion = function(el, multiple) {
        this.el = el || {};
        this.multiple = multiple || false;

        // Variables privadas
        var links = this.el.find('.link');
        // Evento
        links.on('click', {el: this.el, multiple: this.multiple}, this.dropdown)
    }

    Accordion.prototype.dropdown = function(e) {
        var $el = e.data.el;
            $this = $(this),
            $next = $this.next();

        $next.slideToggle();
        $this.parent().toggleClass('open');

        if (!e.data.multiple) {
            $el.find('.submenu').not($next).slideUp().parent().removeClass('open');
        };
    }   

    var accordion = new Accordion($('#accordion'), false);
});
    </script>

</body>
</html>